package com.kj.xuyuan.adapter;

import android.widget.ImageView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.kj.xuyuan.R;
import com.kj.xuyuan.http.UrlConstants;
import com.kj.xuyuan.util.GlideUtils;

public class PhotoAdapter extends BaseQuickAdapter<String, BaseViewHolder> {
    public PhotoAdapter() {
        super(R.layout.item_photo);
    }

    @Override
    protected void convert(BaseViewHolder helper, String item) {
        ImageView ivPhoto = helper.getView(R.id.iv_photo);
        GlideUtils.loadImage(mContext, UrlConstants.Base_Http+item,ivPhoto);
    }
}
